package com.ruoyi.project.syl_DZ.D.OutpatientPatient.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.project.syl_DZ.D.OutpatientPatient.domain.OutpatientPatientDxy;
import com.ruoyi.project.syl_DZ.D.OutpatientPatient.domain.OutpatientRegisterGHD;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.syl_DZ.D.OutpatientPatient.mapper.OutpatientPatientMapperDxy;
import com.ruoyi.project.syl_DZ.D.OutpatientPatient.domain.OutpatientDxyRegisterType ;
import com.ruoyi.project.syl_DZ.D.OutpatientPatient.service.IOutpatientPatientServiceDxy;

/**
 * 【请填写功能名称】Service业务层处理
 *
 * @author ruoyi
 * @date 2021-07-16
 */
@Service
public class OutpatientPatientServiceDxyImpl implements IOutpatientPatientServiceDxy {


    @Autowired
    private OutpatientPatientMapperDxy outpatientPatientMapperDxy;

    public  Integer selectregisterCost(String registerType) {
        System.out.println(registerType);
        return outpatientPatientMapperDxy.selectregisterCost(registerType);
    }

    /**
     * 查询【请填写功能名称】列表
     *
     * @param outpatientRegisterType 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<OutpatientDxyRegisterType> selectOutpatientRegisterTypeList(OutpatientDxyRegisterType outpatientRegisterType)
    {
        return outpatientPatientMapperDxy.selectOutpatientRegisterTypeList(outpatientRegisterType);
    }


    /**
     * 查询【请填写功能名称】
     *
     * @param patientIdcard 【请填写功能名称】ID
     * @return 【请填写功能名称】
     */
    @Override
    public OutpatientPatientDxy selectOutpatientPatientById(String patientIdcard)
    {
        return outpatientPatientMapperDxy.selectOutpatientPatientById(patientIdcard);
    }

    /**
     * 查询【请填写功能名称】列表
     *
     * @param outpatientPatient 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<OutpatientPatientDxy> selectOutpatientPatientList(OutpatientPatientDxy outpatientPatient)
    {
        return outpatientPatientMapperDxy.selectOutpatientPatientList(outpatientPatient);
    }

    /**
     * 新增【请填写功能名称】
     *
     * @param outpatientPatient 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertOutpatientPatient(OutpatientPatientDxy outpatientPatient)
    {
        outpatientPatient.setCreateTime(DateUtils.getNowDate());
        return outpatientPatientMapperDxy.insertOutpatientPatient(outpatientPatient);
    }

    /**
     * 修改【请填写功能名称】
     *
     * @param outpatientPatient 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateOutpatientPatient(OutpatientPatientDxy outpatientPatient)
    {
        outpatientPatient.setUpdateTime(DateUtils.getNowDate());
        return outpatientPatientMapperDxy.updateOutpatientPatient(outpatientPatient);
    }

    /**
     * 批量删除【请填写功能名称】
     *
     * @param patientIds 需要删除的【请填写功能名称】ID
     * @return 结果
     */
    @Override
    public int deleteOutpatientPatientByIds(Long[] patientIds)
    {
        return outpatientPatientMapperDxy.deleteOutpatientPatientByIds(patientIds);
    }

    /**
     * 删除【请填写功能名称】信息
     *
     * @param patientId 【请填写功能名称】ID
     * @return 结果
     */
    @Override
    public int deleteOutpatientPatientById(Long patientId)
    {
        return outpatientPatientMapperDxy.deleteOutpatientPatientById(patientId);
    }

    /**
     * 新增挂号单
     *
     * @param outpatientRegister 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertOutpatientRegister(OutpatientRegisterGHD outpatientRegister)
    {
        outpatientRegister.setCreateTime(DateUtils.getNowDate());
        return outpatientPatientMapperDxy.insertOutpatientRegisterGHD(outpatientRegister);
    }
//    @Override
//    public List<OutpatientPatientDxy> selectOutpatientPatientList03() {
//        return outpatientPatientMapperDxy.selectOutpatientPatientList03();
//    }
}
